Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove the requirement at least one peer #581

Merged
merged 2 commits into from Jan 2, 2019
Merged

Remove the requirement at least one peer #581

merged 2 commits into from Jan 2, 2019

Conversation

prd-fox
Copy link
Contributor

@prd-fox prd-fox commented Dec 28, 2018

All operations on peers either:

  • size check before accessing
  • loop over the list of all peers

so having a list of no peers will perform no actions of the loop, or return before accessing the list with an unknown index.

Thus, having no peers at startup means that the node will sit idle until someone else connects to it. The list is still required to be present, but it an be empty.

Fixes #578
Fixes #577

@codecov-io
Copy link

codecov-io commented Dec 28, 2018

Codecov Report

Merging #581 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##             master     #581   +/-   ##
=========================================
  Coverage     99.43%   99.43%           
  Complexity     1636     1636           
=========================================
  Files           254      254           
  Lines          4979     4979           
  Branches        245      245           
=========================================
  Hits           4951     4951           
  Misses            5        5           
  Partials         23       23
Impacted Files Coverage Δ Complexity Δ
...rc/main/java/com/quorum/tessera/config/Config.java 100% <ø> (ø) 29 <0> (ø) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9b9644d...a6e672b. Read the comment docs.

@melowe melowe merged commit 518f2a5 into Consensys:master Jan 2, 2019
@prd-fox prd-fox added the 0.8 label Jan 2, 2019
@prd-fox prd-fox deleted the allow-no-peers branch January 2, 2019 14:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants